<?php
//循环查找表格的数据，为空unid的数据补充unid
include_once("../config.php");
$host = $_SERVER['HTTP_HOST']; //取得进入所输入的域名
$theme_folder = host_theme($host);
include_once '../front/' . $theme_folder . '/connection.php';
?>




<?php

print_r2($_REQUEST);

if($_REQUEST['type'] == "域名")
{

    $newdate['ai_dominstart']=$_REQUEST['start'];
    $newdate['ai_dominexpire']=$_REQUEST['end'];
    echo "更新域名";
}


if($_REQUEST['type'] == "服务器")
{

    $newdate['ai_hoststart']=$_REQUEST['start'];
    $newdate['ai_hostexpire']=$_REQUEST['end'];
    echo "更新服务器";
}


if( ($newdate['ai_hostexpire']) or ($newdate['ai_dominexpire']))
{
    $updatesql=update_date($table_Prefix."site",$newdate,"nid","0");
    $query = mysql_query($updatesql) or die (mysql_error().$updatesql);

}



$detail=select_one_line_all_items($table_Prefix."site","1 = 1");

echo "<br/>当前服务器开始时间：".$detail['hoststart'];
echo "<br/>当前服务器到期时间：".$detail['hostexpire'];
echo "<br/>当前 域名 开始时间：".$detail['dominstart'];
echo "<br/>当前 域名 截止时间：".$detail['dominexpire'];






?>


